
//
//  StockKLineDataProtocol.h
//  K线图自治
//
//  Created by LK-IOS on 2017/12/12.
//  Copyright © 2017年 LK-IOS. All rights reserved.
//

#ifndef StockKLineDataProtocol_h
#define StockKLineDataProtocol_h


#endif /* StockKLineDataProtocol_h */
//提供K线数据源
@protocol StockKLineDataProtocol <NSObject>

@required






@optional

/**
 *  开盘价
 */
@property (nonatomic, readonly) NSNumber *Open;

/**
 *  收盘价
 */
@property (nonatomic, readonly) NSNumber *Close;

/**
 *  最高价
 */
@property (nonatomic, readonly) NSNumber *High;

/**
 *  最低价
 */
@property (nonatomic, readonly) NSNumber *Low;

/**
 *  成交量
 */
@property (nonatomic, readonly) NSNumber *Volume;

/**
 *  成交额
 */
@property (nonatomic, readonly) NSNumber *VolumeValue;

/**
 *  时间日期
 */
@property (nonatomic, readonly) NSString *date;

/**
 是否显示日期时间
 */
@property (nonatomic, readonly) BOOL isShowDay;

/**
 价格涨跌幅度 ， 开盘和收盘价格的差值
 */
@property (nonatomic, readonly) NSNumber *priceUpDown;

/**
 价格涨跌百分比  开盘和收盘价格的差值比上开盘价
 */
@property (nonatomic, readonly) NSNumber *priceUpDownRate;

/**
 *  当前价，K线里面的当前价为开收的平均值
 */
@property (nonatomic, readonly) NSNumber *currentPrice;



/**
构造模型
 */
- (instancetype)initWithDict: (NSDictionary *)dict;



@end
